package com.postgresql.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.vividsolutions.jts.geom.Point;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author: 顾志杰
 */
@Data
@Entity
@JsonIgnoreProperties({"handler","hibernateLazyInitializer"})
public class Poi {
    @Id
    private Integer gid;

    private Integer userid;

    private String name;

    @Column(name = "geom",columnDefinition = "geometry(Point,3857)")
    private Point geom;
}
